<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<script type="text/javascript">--%>
    <%--$(document).ready(function(){--%>
        <%--$("#businessTable").datagrid({--%>
            <%--height:'100%',--%>
            <%--data--%>
        <%--});--%>
    <%--})--%>
<%--</script>--%>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="businessTable" data-toggle="datagrid" data-options="{
        height:'100%',
        dataUrl:'<c:url value="/business/data.json"/>',
        showToolbar:true,
        toolbarCustom:'<a href=\'<c:url value="/business/create"/>\' class=\'btn-default\' data-toggle=\'dialog\'>自定义</a>'}">
        <thead>
            <tr>
                <th data-options="{name:'id'}">编号</th>
                <th data-options="{name:'name'}">业务名称</th>
                <th data-options="{name:'createTime'}">创建时间</th>
            </tr>
        </thead>
    </table>
</div>